﻿using System;

namespace GIMS.Def.Arguments
{
public class LiteralArgument : Argument
{
    //declaration of instance members
    private string literalValue = "";                       

    public LiteralArgument()
    {
        name = "Literal Argument";          //assignation of the argument name
        type = Flags.ArgumentType.literal;  //assignation of the ArgumentType
    }

    //CreateScriptPart must be overridden
    public override string CreateScriptPart()               
    {
        return string.Concat("\"", literalValue, "\"");
    }

    //public properties to announce the instance members
    public String Text                                     
    {                                                       
        get { return literalValue; }
        set
        {
            literalValue = value;
            OnPropertyChanged("literal");
        }
    }
}
}
